from fastapi import FastAPI, Depends
from sqlalchemy.orm import Session
#from database import SessionLocal, Base
from routes import default_router
from routes.auth import get_current_active_user
from models.user import User

app = FastAPI(
    title="Fast API-用户管理",
    description="API for User Management System with FastAPI",
    version="0.1.0",
    openapi_url="/api/v1/openapi.json",
    
)



from routes.user import router as user_router
from routes.department import router as department_router
from routes.position import router as position_router
from routes.auth import router as auth_router

app.include_router(auth_router)
app.include_router(user_router)
app.include_router(department_router)
app.include_router(position_router)
app.include_router(default_router)



# docker-compose up --build